<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('省市区')}:</label>
        <div class="col-xs-6 col-sm-6">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area"
                style="display: flex;">
                <select class="province form-control" name="row[province_id]" data-url="ajax/cnarea"></select>   
                <select class="city form-control" name="row[city_id]" data-url="ajax/cnarea"></select>
                <select class="area form-control" name="row[area_id]" data-url="ajax/cnarea"></select>
            </div>
        </div>
    </div>
    <input id="c-pid" min="0" class="form-control" name="row[pid]" type="hidden" value="{:Request()->get('ids')}">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Send_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-send_fee" class="form-control" step="0.01" name="row[send_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day" min="0" class="form-control" name="row[day]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" class="form-control" step="0.01" name="row[weight]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group row">
        <label class="control-label col-xs-12">{:__('超重配置')}:</label>
        <div class="col-xs-12">
            <table class="table fieldlist" data-template="basictpl" data-name="row[basic]" id="first-table">
                <tr>
                    <td>{:__('超重重量(以内)')}</td>
                    <td>{:__('超重单价(元)')}</td>
                    <td width="100"></td>
                </tr>
                <tr>
                    <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i
                                class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="row[basic]" class="form-control hidden" cols="30" rows="5"></textarea>
            <script id="basictpl" type="text/html">
                <tr class="form-inline">
                    <td>
                        <input type="text" name="<%=name%>[<%=index%>][weight]" class="form-control" size="15" value="<%=row.weight%>" placeholder=""/>
                    </td>
                    <td><input type="text" name="<%=name%>[<%=index%>][send_fee]" class="form-control" size="15" value="<%=row.send_fee%>" placeholder=""/></td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expense')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expense" class="form-control" step="0.01" name="row[expense]" type="number" value="0.00">
        </div>
    </div> -->

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>